package com.vegetable.modules.entity.dashboard;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 价格预警数据VO
 *
 * @author qoder
 * @since 2025-09-11
 */
@Data
@ApiModel(value = "PriceAlertVO", description = "价格预警数据")
public class PriceAlertVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品ID")
    private Long commodityId;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品编码")
    private String commodityCode;

    @ApiModelProperty(value = "标准")
    private BigDecimal standard;

    @ApiModelProperty(value = "商品分类ID")
    private Long categoryId;

    @ApiModelProperty(value = "商品分类名称")
    private String categoryName;

    @ApiModelProperty(value = "最低价格")
    private BigDecimal todayMinPrice;

    @ApiModelProperty(value = "最高价格")
    private BigDecimal todayMaxPrice;

    @ApiModelProperty(value = "价格差异金额")
    private BigDecimal priceDifference;

    @ApiModelProperty(value = "预警阈值")
    private BigDecimal alertThreshold;

    @ApiModelProperty(value = "预警级别(1:轻微 2:严重 3:紧急)")
    private Integer alertLevel;

    @ApiModelProperty(value = "预警级别名称")
    private String alertLevelName;

    @ApiModelProperty(value = "最低价格对应的订单ID")
    private Long minPriceOrderId;

    @ApiModelProperty(value = "最高价格对应的订单ID")
    private Long maxPriceOrderId;

}